home *** CD-ROM | disk | FTP | other *** search
- /*
- * $
- * $ FILE : gbscrollbox.doc
- * $ VERSION : 1
- * $ REVISION : 1
- * $ DATE : 08-Feb-93 10:01
- * $
- * $ Author : mvk
- * $
- *
- *
- * (c) Copyright 1990/93 VIONA Development
- * All Rights Reserved
- *
- */
-
- gbscrollbox.library/EGB_ActivateElem
- gbscrollbox.library/EGB_AddItemToScrollBox
- gbscrollbox.library/EGB_AddListToScrollBox
- gbscrollbox.library/EGB_CreateLateScrollBox
- gbscrollbox.library/EGB_LinkStringToScroll
- gbscrollbox.library/EGB_NextElem
- gbscrollbox.library/EGB_PrevElem
- gbscrollbox.library/EGB_RemItemFromScrollBox
- gbscrollbox.library/EGB_RemListFromScrollBox
- gbscrollbox.library/EGB_SetTopElem
- gbscrollbox.library/EGB_UpdateScrollBox
-
-
- gbscrollbox.library/EGB_ActivateElem
- NAME
- EGB_ActivateElem
-
- SYNOPSIS
- EGB_ActivateElem(win, gad, item);
- A0 A1 A2
-
- EI_WindowPtr win;
- EI_GadgetPtr gad;
- struct Node *item;
-
- FUNCTION
- Activates an item from a gadbox scrollbox gadget. Moves the scrollbox view
- if necessary.
-
- INPUTS
- win : The window that contains the gadget; if NULL, no refresh is done
- gad : the scrollbox gadget
- item : Pointer to the item (node) to be activated
-
- RETURNS
-
-
-
-
- gbscrollbox.library/EGB_AddItemToScrollBox
- NAME
- EGB_AddItemToScrollBox
-
- SYNOPSIS
- EGB_AddItemToScrollBox(win, gad, item);
- A0 A1 A2
-
- EI_WindowPtr win;
- EI_GadgetPtr gad;
- struct Node *item;
-
- FUNCTION
- Adds an item to a scroll box. Make sure that this item is not an element of
- a second list, as it is inserted into the scrollbox's list. If the sort flag
- is set, the item will be inserted in alphabetical order.
-
- INPUTS
- win : The window, that contains the gadget; if NULL, no refresh is done
- gad : The scrollbox gadget
- item : The item to be inserted in to the scrollbox
-
- RETURNS
-
-
-
-
- gbscrollbox.library/EGB_AddListToScrollBox
- NAME
- EGB_AddListToScrollBox
-
- SYNOPSIS
- EGB_AddListToScrollBox(win, gad, list);
- A0 A1 A2
-
- EI_WindowPtr win;
- EI_GadgetPtr gad;
- struct List *list;
-
- FUNCTION
- Adds the elements of the list to the scrollbox. The original list is
- destroyed, as the elements are not cloned, but used as they are.
-
- INPUTS
- win : Window that contains the gadget; if NULL, no refresh is done
- gad : the scrollbox gadget
- list : The list containing the elements to be inserted into the
- scrollbox.
-
- RETURNS
-
-
-
-
- gbscrollbox.library/EGB_CreateLateScrollBox
- NAME
- EGB_CreateLateScrollBox
-
- SYNOPSIS
- box = EGB_CreateLateScrollBox(con, minWidth, maxWidth, minHeight, maxHeight,
- D0 A0 D0 D1 D2 D3
- sort, id);
- D4 D5
-
- EB_GadBoxPtr box;
- EB_GadContext con;
- WORD minWidth, maxWidth, minHeight, maxHeight;
- ULONG sort;
- LONG id;
-
- FUNCTION
- Creates a gadbox scrollbox gadget. These gadgets offer a list of Textlines,
- in which the user can scroll using a propgadget. One item can be selected
- at any time. This item is highlighted. The size information gives only
- minimum and maximum values in characters and lines. The number of displayed
- lines and collumns in the gadget depents on the surrounding gadboxes.
-
- INPUTS
- con : The associated gadget context
- minWidth : the minimal requiered number of collumns
- maxWidth : the maximal allowed number of collumns
- minHeight : the minimal requiered number of lines
- maxHeight : the maximal allowed number of lines
- sort : boolean value, if true, the scrollbox elements are sorted
- by their priority and string.
-
- RETURNS
-
-
-
-
- gbscrollbox.library/EGB_LinkStringToScroll
- NAME
- EGB_LinkStringToScroll
-
- SYNOPSIS
- EGB_LinkStringToScroll(scroll, string);
- A0 A1
-
- EI_GadgetPtr scroll;
- EI_GadgetPtr string;
-
- FUNCTION
- Links a string gadget to a scroll box. If an item from the scrollbox is
- activated, the associated string will be copied to the string gadget.
- The area of the scroll gadget will follow the value in the string gadget,
- when ever that is modified
-
- INPUTS
- scroll : a scrollbox gadget
- string : a string gadget
-
- RETURNS
-
-
-
-
- gbscrollbox.library/EGB_NextElem
- NAME
- EGB_NextElem
-
- SYNOPSIS
- EGB_NextElem(win, gad);
- A0 A1
-
- EI_WindowPtr win;
- EI_GadgetPtr gad;
-
- FUNCTION
- Activates the next element of a scrollbox gadget. If none is selected
- the first entry will become the selected one.
-
- INPUTS
- win : The window that contains the gadget, if NULL, no refresh is done
- gad : The scrollbox gadget
-
- RETURNS
-
-
-
-
- gbscrollbox.library/EGB_PrevElem
- NAME
- EGB_PrevElem
-
- SYNOPSIS
- EGB_PrevElem(win, gad);
- A0 A1
-
- EI_WindowPtr win;
- EI_GadgetPtr gad;
-
- FUNCTION
- Activates the previous element in a scrollbox gadget. If none is selected,
- the last one will become the selected one.
-
- INPUTS
- win : The window that contains the gadget; if NULL, no refresh is done
- gad : The scrollbox gadget
-
- RETURNS
-
-
-
-
- gbscrollbox.library/EGB_RemItemFromScrollBox
- NAME
- EGB_RemItemFromScrollBox
-
- SYNOPSIS
- EGB_RemItemFromScrollBox(win, gad, item);
- A0 A1 A2
-
- EI_WindowPtr win;
- EI_GadgetPtr gad;
- struct Node *item;
-
- FUNCTION
- Removes an item from a scrollbox.
-
- INPUTS
- win : The window, that contains the gadget; if NULL, no refresh is done
- gad : The scrollbox gadget
- item : The element to remove, must be in the scrollbox
-
- RETURNS
-
-
-
-
- gbscrollbox.library/EGB_RemListFromScrollBox
- NAME
- EGB_RemListFromScrollBox
-
- SYNOPSIS
- EGB_RemListFromScrollBox(win, gad, list);
- A0 A1 A2
-
- EI_WindowPtr win;
- EI_GadgetPtr gad;
- struct List *list;
-
- FUNCTION
- Removes all items from a scrollbox and puts them into the list. This list
- may later be added to the scrollbox again.
-
- INPUTS
- win : The window that contains the gadget; if NULL, no refresh is done
- gad : The scrollbox gadget
- list : an empty list
-
- RETURNS
- list : A list, that contains all items that were in the scrollbox before.
-
-
-
-
-
- gbscrollbox.library/EGB_SetTopElem
- NAME
- EGB_SetTopElem
-
- SYNOPSIS
- EGB_SetTopElem(win, gad, item);
- A0 A1 A2
-
- EI_WindowPtr win;
- EI_GadgetPtr gad;
- struct Node *item;
-
- FUNCTION
- Changes the visible area of a scrollbox gadget.
-
- INPUTS
- win : The window that contains the gadget; if NULL, no refresh is done
- gad : The scrollbox gadget
- item : This item will become the topmost one in the visible area of the
- scrollgadget
-
- RETURNS
-
-
-
-
- gbscrollbox.library/EGB_UpdateScrollBox
- NAME
- EGB_UpdateScrollBox
-
- SYNOPSIS
- EGB_UpdateScrollBox(win, gad);
- A0 A1
-
- EI_WindowPtr win;
- EI_GadgetPtr gad;
-
- FUNCTION
- Updates a scrollbox, after its item list has be changed manually. You must
- call this function every time you have changed the item list. But don't
- forget to lock egsintui (EI_LockIntution) while you work in the gadgets
- private data structure. In general it is better to remove the list from
- the scrollbox, work outside and add it again afterwards.
- If you want to avoid that the empty gadget is drawn after you removed
- the items, call EGB_RemListFromScrollBox with win=NULL. But make sure
- that you add the items again after the operation.
-
- INPUTS
- win : The window that contains the gadget; if NULL, no refresh is done
- gad : The scrollbox gadget
-
- RETURNS
-
-
-
-
-
-
-